import Detail from "../Detail";
import Home from "../pages/Home";
import Homes from "../pages/Homes";
import Login from "../pages/Login";
import My from "../pages/My";
const routes=[
    {
        path: '/home',
        component: Home,
        children: [
            {
                path: '/home/homes',
                title: '首页',
                component: Homes
            },
            {
                path:'/home/my',
                title:'我的',
                isLogin: true,
                component: My
            },
            {
                from:"/home",
                to: '/home/homes'
            }
        ]
    },
    {
        path:'/detail/:id',
        component: Detail
    },
    {
        path:"/login",
        component: Login
    },
    {
        from:'/',
        to: '/home'
    }
]
export default routes